const http = require('http')
const fs = require('fs')
const express = require('express')


const hostname = '127.0.0.1'
const port = 80

const server = http.createServer((req, res) => {
  res.statusCode = 200
  res.setHeader('Content-Type', 'text/html','utf-8')   
  fs.readFile('./index.html',(err,data)=>{
      res.end(data);
  })
})

server.listen(port, hostname, () => {
  console.log(`Server running at http://${hostname}:${port}/`)
})
